package com.ce.pms.occupation;

import org.apache.poi.hssf.usermodel.HSSFWorkbook;
import org.junit.Assert;
import org.junit.BeforeClass;
import org.junit.Test;

import com.ce.pms.DBUnitTool;
import com.ce.pms.occupation.service.IDispatchExportService;
import com.ce.util.BeanUtil;
/**
 * 功能描述: 入伙派工导出单元测试类
 * <p>版权所有：中企动力
 * <p>未经本公司许可，不得以任何方式复制或使用本程序任何部分
 *
 * @author  胡煦
 * Create on:2009-1-5
 * Edit author:
 * Edit on:
 * 修改原因：

 */
public class DispatchExportServiceT extends DBUnitTool {
	@Test
	public void testCreateHSSFWorkbook(){
		HSSFWorkbook b = dispatchExportService.createHSSFWorkbook(1l);
		BeanUtil.printfInfo(b, true);
		Assert.assertNotNull(b);
	}
private static IDispatchExportService dispatchExportService;
/**
*
* 功能描述:   <br>
*
* Create author：胡煦  <br>
* Create on:2008-12-17  <br>
* Edit author：  <br>
* Edit on:    <br>
* Why:     <br>
*/
@BeforeClass
public static void initDispatchExport(){
	if (dispatchExportService == null) {
		dispatchExportService = (IDispatchExportService)DBUnitTool.applicationContext.getBean("dispatchExportService");
	}
}
}
